<div style="float: left; width: 400px;">
	<h2>Login</h2>
	<?php echo $this->Session->flash('auth'); ?>
	<?php echo $this->Form->create('User');?>
		<fieldset>
		    <!-- <legend><?php echo __('Please enter your email and password'); ?></legend> -->
		<?php
		    echo $this->Form->input('email');
		    echo $this->Form->input('password');
		?>
		</fieldset>
	<?php echo $this->Form->end(__('Login'));?>
</div>
<div style="float: right; width: 400px;">
	<h2>Register</h2>
	<?php
	echo $this->Form->create('User', array('action' => 'add'));
	echo $this->Form->input('name');
	echo $this->Form->input('surname');
	echo $this->Form->input('email');
	echo $this->Form->input('password');
	if($isAdmin) {
		echo $this->Form->input('rights', array(
				'options' => array('admin' => 'Admin', 'student' => 'Student')
			)
		);
	}
	?>
	<select name='data[User][id_faculty]'>
		<?php
			foreach ($faculties as $faculty) {
				echo "<option value='" . $faculty['Faculty']['id_faculty'] . "'>" . $faculty['Faculty']['name'] . "</option>";
			}
		?>
	</select><?php
	echo $this->Form->end('Register');//Save new user
	?>
</div>
